
#ifndef _DRV_I2C_BUS_H_
#define _DRV_I2C_BUS_H_

#include <Arduino.h>

#ifdef __cplusplus
extern "C" {
#endif

void drv_i2c_bus_init(void);
uint32_t drv_i2c_getclock(void);
void drv_i2c_setclock(uint32_t clock);
bool drv_i2c_write(uint8_t addr, uint8_t *data, uint16_t len);
bool drv_i2c_read(uint8_t addr, uint8_t *data, uint16_t len);

#ifdef __cplusplus
}
#endif

#endif
